import request from "@/request/";

//分页
export const getSpotProjectList = (data) => {
  return request({
    url: "/api/mes-equipment-service/check/item/page",
    method: "POST",
    data,
  });
};

// 新增
export const addProject = (data) => {
  return request({
    url: "/api/mes-equipment-service/check/item/save",
    method: "POST",
    data,
  });
};

// 更新状态
export const updateState = (data) => {
  return request({
    url: "/api/mes-equipment-service/check/item/state/change",
    method: "POST",
    data,
  });
};

// 删除
export const removeProject = (idList, forceDel) => {
  return request({
    url: "/api/mes-equipment-service/check/item/remove",
    method: "POST",
    data: {
      idList,
      forceDel,
    },
  });
};
